{% extends 'xadmin/base/base.html' %}

{% load static %}

{% block title %}
	添加热门文章
{% endblock %}

{% block link %}

{% endblock %}

{% block header %}
	添加热门文章
{% endblock %}

{% block header-option %}
	创建热门文章
{% endblock %}

{% block content %}
	<div class="box box-primary">
		<div class="box-body">
			<div class="form-horizontal">
				<div class="form-group">
					<label for="category-select" class="col-md-2 col-sm-2 control-label">选择文章</label>
					<div class="col-md-2 col-sm-3">
						<select name="category" id="category-select" class="form-control input-md">
							<option value="0">--请选择文章分类--</option>

							{% for one_tag in tags %}
								<option value="{{ one_tag.id }}">{{ one_tag.name }}</option>
							{% endfor %}

						</select>
					</div>
					<div class="col-md-8 col-sm-7">
						<label for="news-select" style="display: none;"></label>
						<select name="news" class="form-control input-md" id="news-select">
							<option value="0">--请选择文章--</option>
						</select>
					</div>
				</div>
				<div class="form-group">
					<label for="priority" class="col-md-2 col-sm-2 control-label">选择优先级</label>

					<div class="col-md-2 col-sm-3">
						<select name="priority" id="priority" class="form-control input-md">
							<option value="0">--请选择优先级--</option>

							{% for id, value in priority_dict.items %}
								<option value="{{ id }}">{{ value }}</option>
							{% endfor %}

						</select>

					</div>
				</div>
			</div>
			<div class="box-footer">
				<a href="javascript:void(0);" class="btn btn-primary pull-right" id="save-btn">保存</a>
			</div>
		</div>
	</div>
{% endblock %}

{% block script %}
	<script src="../../../static/xadmin/js/news/hot-news.js"></script>
{% endblock %}